LOCAL_PATH := $(call my-dir)

# ====================================================================
# libiap2CPP
# ====================================================================
include $(CLEAR_VARS)
LOCAL_MODULE := libiap2CPP

LOCAL_MODULE_TAGS := optional
LOCAL_JACK_ENABLED := disabled


LOCAL_C_INCLUDES := \
    $(LOCAL_PATH)/include \
    $(LOCAL_PATH)/include/util \
    $(LOCAL_PATH)/linux \

LOCAL_SRC_FILES := \
	src/CIap2Sqlite.cpp \
	src/CIpodConfig.cpp \
	src/CIpodEvent.cpp \
	src/CIpodIap2.cpp \
	src/CIpodLibWrapper.cpp \
	src/CIpodLog.cpp      \
	src/CIpodProtocol.cpp   \
	src/CIpodVehicle.cpp   \
	src/CIpodChip.cpp    \
	src/CIpodDevice.cpp  \
	src/CIpodIap1.cpp   \
	src/CIpodLib.cpp   \
	src/CIpodList.cpp   \
	src/CIpodNative.cpp  \
	src/CIpodSync.cpp     \
	src/util/CStrTool.cpp  \
	src/util/pinyin.c  \
	src/util/rgbtobmp.c \
	
LOCAL_CFLAGS := \
    -DBUILD_FOR_ANDROID \
    -Wno-error=date-time \
    -Wno-error=int-conversion \
    
LOCAL_LDLIBS := -llog

LOCAL_LDFLAGS := -Wl
#LOCAL_LDFLAGS := -Wl,--unresolved-symbols=ignore-all \

#LOCAL_LDFLAGS := -llog  \

LOCAL_SHARED_LIBRARIES := \
    libCoreUtils \


include $(BUILD_SHARED_LIBRARY)

